<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">

<title>NEWS-2.1.0 - RDoc Documentation</title>


<script src="../js/navigation.js" defer></script>
<script src="../js/search.js" defer></script>
<script src="../js/search_index.js" defer></script>
<script src="../js/searcher.js" defer></script>
<script src="../js/darkfish.js" defer></script>

<script src="../js/jquery-3.2.0.min.js"></script>

<script src="../js/vue.min.js"></script>
<script src="../js/js.cookie.min.js"></script>

<link href="../css/fonts.css" rel="stylesheet">
<link id='rdoccss' href="../css/rdoc.css" rel="stylesheet">
<link href="../css/carbon17.css" rel="stylesheet">

<script type="text/javascript">
  var rdoc_rel_prefix = "../";
  var index_rel_prefix = "../";
  var darkModeCsseHref = "../css/rdoc-dm.css"
  var defaultModeCssHref = "../css/rdoc.css"
  // var cssDarkmode = Cookies.get('darkmode');
  
  if( Cookies.get("darkmode") == "true") {
	$('#rdoccss').attr("href", darkModeCsseHref);
}

//  https://cssdeck.com/blog/simple-jquery-stylesheet-switcher/

document.write('<style type="text/css">body{display:none}</style>');

</script>


</head>
<body id="top" role="document" class="file">
  <!-- this is page.html -->
  <div id='actionbar' >
    <div class='wrapper mdiv'>
      <ul class='grids g0'></ul>
    </div> 
    <!-- VERSION HEADER for 3.3.0-preview2 NOT FOUND -->
  </div> <!-- end action bar -->


 <div class='wrapper hdiv'>

 


<nav id='vapp' role="navigation">
  <div id="project-navigation">
    <div id="home-section" role="region" title="Quick navigation" class="nav-section">
  <h2><a href="../index.html" rel="home">Home</a></h2>

  <div id="table-of-contents-navigation"  >
    <a href="../table_of_contents.html#pages">Pages</a>
    <a href="../table_of_contents.html#classes">Classes</a>
    <a href="../table_of_contents.html#methods">Methods</a>
  </div>
</div>

    <div id="search-section" role="search" class="project-section initially-hidden">
  <form action="#" method="get" accept-charset="utf-8">
    <div id="search-field-wrapper">
      <input id="search-field" role="combobox" aria-label="Search"
             aria-autocomplete="list" aria-controls="search-results"
             type="text" name="search" placeholder="Search" spellcheck="false"
             title="Type to search, Up and Down to navigate, Enter to load">
    </div>

    <ul id="search-results" aria-label="Search Results"
        aria-busy="false" aria-expanded="false"
        aria-atomic="false" class="initially-hidden"></ul>
  </form>
</div>

  </div>

  
<div class="nav-section">
  <h3>Table of Contents</h3>

  <ul class="link-list" role="directory">
    <li><a href="#label-NEWS+for+Ruby+2.1.0">NEWS for Ruby 2.1.0</a>
    <li><a href="#label-Changes+since+the+2.0.0+release">Changes since the 2.0.0 release</a>
    <li><a href="#label-Language+changes">Language changes</a>
    <li><a href="#label-Core+classes+updates+-28outstanding+ones+only-29">Core classes updates (outstanding ones only)</a>
    <li><a href="#label-Core+classes+compatibility+issues+-28excluding+feature+bug+fixes-29">Core classes compatibility issues (excluding feature bug fixes)</a>
    <li><a href="#label-Stdlib+updates+-28outstanding+ones+only-29">Stdlib updates (outstanding ones only)</a>
    <li><a href="#label-Stdlib+compatibility+issues+-28excluding+feature+bug+fixes-29">Stdlib compatibility issues (excluding feature bug fixes)</a>
    <li><a href="#label-Built-in+global+variables+compatibility+issues">Built-in global variables compatibility issues</a>
    <li><a href="#label-C+API+updates">C API updates</a>
  </ul>
</div>

  <button id='toggleThing' @click="toggleNav()" >Show/hide navigation</button>

  <div id="project-metadata">
   <div :class="isOpen ? 'block' : 'hidden' " id='toggleMe'>
    
<div id="fileindex-section" class="nav-section">
  <h3>Pages</h3>

  <ul class="link-list">
    <li><a href="../NEWS/NEWS-1_8_7.html">NEWS-1.8.7</a>
    <li><a href="../NEWS/NEWS-1_9_1.html">NEWS-1.9.1</a>
    <li><a href="../NEWS/NEWS-1_9_2.html">NEWS-1.9.2</a>
    <li><a href="../NEWS/NEWS-1_9_3.html">NEWS-1.9.3</a>
    <li><a href="../NEWS/NEWS-2_0_0.html">NEWS-2.0.0</a>
    <li><a href="../NEWS/NEWS-2_1_0.html">NEWS-2.1.0</a>
    <li><a href="../NEWS/NEWS-2_2_0.html">NEWS-2.2.0</a>
    <li><a href="../NEWS/NEWS-2_3_0.html">NEWS-2.3.0</a>
    <li><a href="../NEWS/NEWS-2_4_0.html">NEWS-2.4.0</a>
    <li><a href="../NEWS/NEWS-2_5_0.html">NEWS-2.5.0</a>
    <li><a href="../NEWS/NEWS-2_6_0.html">NEWS-2.6.0</a>
    <li><a href="../NEWS/NEWS-2_7_0.html">NEWS-2.7.0</a>
    <li><a href="../NEWS/NEWS-3_0_0_md.html">NEWS-3.0.0</a>
    <li><a href="../NEWS/NEWS-3_1_0_md.html">NEWS-3.1.0</a>
    <li><a href="../NEWS/NEWS-3_2_0_md.html">NEWS-3.2.0</a>
    <li><a href="../bsearch_rdoc.html">bsearch</a>
    <li><a href="../bug_triaging_rdoc.html">bug_triaging</a>
    <li><a href="../case_mapping_rdoc.html">case_mapping</a>
    <li><a href="../character_selectors_rdoc.html">character_selectors</a>
    <li><a href="../command_injection_rdoc.html">command_injection</a>
    <li><a href="../contributing_md.html">contributing</a>
    <li><a href="../contributing/building_ruby_md.html">building_ruby</a>
    <li><a href="../contributing/documentation_guide_md.html">documentation_guide</a>
    <li><a href="../contributing/glossary_md.html">glossary</a>
    <li><a href="../contributing/making_changes_to_ruby_md.html">making_changes_to_ruby</a>
    <li><a href="../contributing/making_changes_to_stdlibs_md.html">making_changes_to_stdlibs</a>
    <li><a href="../contributing/reporting_issues_md.html">reporting_issues</a>
    <li><a href="../contributing/testing_ruby_md.html">testing_ruby</a>
    <li><a href="../dig_methods_rdoc.html">dig_methods</a>
    <li><a href="../distribution_md.html">distribution</a>
    <li><a href="../dtrace_probes_rdoc.html">dtrace_probes</a>
    <li><a href="../encodings_rdoc.html">encodings</a>
    <li><a href="../extension_ja_rdoc.html">extension.ja</a>
    <li><a href="../extension_rdoc.html">extension</a>
    <li><a href="../fiber_md.html">fiber</a>
    <li><a href="../format_specifications_rdoc.html">format_specifications</a>
    <li><a href="../globals_rdoc.html">globals</a>
    <li><a href="../implicit_conversion_rdoc.html">implicit_conversion</a>
    <li><a href="../keywords_rdoc.html">keywords</a>
    <li><a href="../maintainers_md.html">maintainers</a>
    <li><a href="../marshal_rdoc.html">marshal</a>
    <li><a href="../memory_view_md.html">memory_view</a>
    <li><a href="../optparse/argument_converters_rdoc.html">argument_converters</a>
    <li><a href="../optparse/creates_option_rdoc.html">creates_option</a>
    <li><a href="../optparse/option_params_rdoc.html">option_params</a>
    <li><a href="../optparse/tutorial_rdoc.html">tutorial</a>
    <li><a href="../packed_data_rdoc.html">packed_data</a>
    <li><a href="../ractor_md.html">ractor</a>
    <li><a href="../regexp_rdoc.html">regexp</a>
    <li><a href="../regexp/methods_rdoc.html">methods</a>
    <li><a href="../regexp/unicode_properties_rdoc.html">unicode_properties</a>
    <li><a href="../ruby_3_3_0_preview2/COPYING.html">COPYING</a>
    <li><a href="../ruby_3_3_0_preview2/COPYING_ja.html">COPYING.ja</a>
    <li><a href="../ruby_3_3_0_preview2/LEGAL.html">LEGAL</a>
    <li><a href="../ruby_3_3_0_preview2/NEWS_md.html">NEWS</a>
    <li><a href="../ruby_3_3_0_preview2/README_ja_md.html">README.ja</a>
    <li><a href="../ruby_3_3_0_preview2/README_md.html">README</a>
    <li><a href="../security_rdoc.html">security</a>
    <li><a href="../signals_rdoc.html">signals</a>
    <li><a href="../standard_library_rdoc.html">standard_library</a>
    <li><a href="../strftime_formatting_rdoc.html">strftime_formatting</a>
    <li><a href="../syntax_rdoc.html">syntax</a>
    <li><a href="../syntax/assignment_rdoc.html">assignment</a>
    <li><a href="../syntax/calling_methods_rdoc.html">calling_methods</a>
    <li><a href="../syntax/comments_rdoc.html">comments</a>
    <li><a href="../syntax/control_expressions_rdoc.html">control_expressions</a>
    <li><a href="../syntax/exceptions_rdoc.html">exceptions</a>
    <li><a href="../syntax/literals_rdoc.html">literals</a>
    <li><a href="../syntax/methods_rdoc.html">methods</a>
    <li><a href="../syntax/miscellaneous_rdoc.html">miscellaneous</a>
    <li><a href="../syntax/modules_and_classes_rdoc.html">modules_and_classes</a>
    <li><a href="../syntax/pattern_matching_rdoc.html">pattern_matching</a>
    <li><a href="../syntax/precedence_rdoc.html">precedence</a>
    <li><a href="../syntax/refinements_rdoc.html">refinements</a>
    <li><a href="../timezones_rdoc.html">timezones</a>
    <li><a href="../windows_md.html">windows</a>
    <li><a href="../yjit/yjit_md.html">yjit</a>
    <li><a href="../yjit/yjit_hacking_md.html">yjit_hacking</a>
  </ul>
</div>

   </div>
  </div>
</nav>


<!--  carbon ads here -->

<div id='extraz'>
  <div class='adzbox-index'  >
   
  </div>
 </div>         


<main role="main" aria-label="Page NEWS/NEWS-2.1.0">

<h1 id="label-NEWS+for+Ruby+2.1.0"><a href="../ruby_3_3_0_preview2/NEWS_md.html">NEWS</a> for Ruby 2.1.0<span><a href="#label-NEWS+for+Ruby+2.1.0">&para;</a> <a href="#top">&uarr;</a></span></h1>

<p>This document is a list of user visible feature changes made between releases except for bug fixes.</p>

<p>Note that each entry is kept so brief that no reason behind or reference information is supplied with.  For a full list of changes with all sufficient information, see the ChangeLog file.</p>

<h2 id="label-Changes+since+the+2.0.0+release">Changes since the 2.0.0 release<span><a href="#label-Changes+since+the+2.0.0+release">&para;</a> <a href="#top">&uarr;</a></span></h2>

<h3 id="label-Language+changes">Language changes<span><a href="#label-Language+changes">&para;</a> <a href="#top">&uarr;</a></span></h3>
<ul><li>
<p>Now the default values of keyword arguments can be omitted.  Those “required keyword arguments” need giving explicitly at the call time.</p>
</li><li>
<p>Added suffixes for integer and float literals: ‘r’, ‘i’, and ‘ri’.</p>
<ul><li>
<p>“42r” and “3.14r” are evaluated as Rational(42, 1) and 3.14.rationalize, respectively.  But exponential form with ‘r’ suffix like “6.022e+23r” is not accepted because it is misleading.</p>
</li><li>
<p>“42i” and “3.14i” are evaluated as Complex(0, 42) and Complex(0, 3.14), respectively.</p>
</li><li>
<p>“42ri” and “3.14ri” are evaluated as Complex(0, 42r) and Complex(0, 3.14r), respectively.</p>
</li></ul>
</li><li>
<p>def-expr now returns the symbol of its name instead of nil.</p>
</li></ul>

<h3 id="label-Core+classes+updates+-28outstanding+ones+only-29">Core classes updates (outstanding ones only)<span><a href="#label-Core+classes+updates+-28outstanding+ones+only-29">&para;</a> <a href="#top">&uarr;</a></span></h3>
<ul><li>
<p><a href="../Array.html"><code>Array</code></a></p>
<ul><li>
<p>New methods</p>
<ul><li>
<p><a href="../Array.html#method-i-to_h"><code>Array#to_h</code></a> converts an array of key-value pairs into a <a href="../Hash.html"><code>Hash</code></a>.</p>
</li></ul>
</li></ul>
</li><li>
<p><a href="../Binding.html"><code>Binding</code></a></p>
<ul><li>
<p>New methods</p>
<ul><li>
<p><a href="../Binding.html#method-i-local_variable_get"><code>Binding#local_variable_get(symbol)</code></a></p>
</li><li>
<p><a href="../Binding.html#method-i-local_variable_set"><code>Binding#local_variable_set</code></a>(symbol, obj)</p>
</li><li>
<p><a href="../Binding.html#method-i-local_variable_defined-3F"><code>Binding#local_variable_defined?(symbol)</code></a></p>
</li></ul>
</li></ul>
</li><li>
<p><a href="../Enumerable.html"><code>Enumerable</code></a></p>
<ul><li>
<p>New methods</p>
<ul><li>
<p><a href="../Enumerable.html#method-i-to_h"><code>Enumerable#to_h</code></a> converts a list of key-value pairs into a <a href="../Hash.html"><code>Hash</code></a>.</p>
</li></ul>
</li></ul>
</li><li>
<p><a href="../Exception.html"><code>Exception</code></a></p>
<ul><li>
<p>New methods</p>
<ul><li>
<p><a href="../Exception.html#method-i-cause"><code>Exception#cause</code></a> provides the previous exception which has been caught at where raising the new exception.</p>
</li></ul>
</li></ul>
</li><li>
<p><a href="../GC.html"><code>GC</code></a></p>
<ul><li>
<p>improvements:</p>
<ul><li>
<p>introduced the generational <a href="../GC.html"><code>GC</code></a> a.k.a RGenGC.</p>
</li></ul>
</li><li>
<p>added environment variables:</p>
<ul><li>
<p>RUBY_GC_HEAP_INIT_SLOTS</p>
</li><li>
<p>RUBY_GC_HEAP_FREE_SLOTS</p>
</li><li>
<p>RUBY_GC_HEAP_GROWTH_FACTOR</p>
</li><li>
<p>RUBY_GC_HEAP_GROWTH_MAX_SLOTS</p>
</li><li>
<p>RUBY_GC_MALLOC_LIMIT_MAX</p>
</li><li>
<p>RUBY_GC_MALLOC_LIMIT_GROWTH_FACTOR</p>
</li><li>
<p>RUBY_GC_OLDMALLOC_LIMIT</p>
</li><li>
<p>RUBY_GC_OLDMALLOC_LIMIT_MAX</p>
</li><li>
<p>RUBY_GC_OLDMALLOC_LIMIT_GROWTH_FACTOR</p>
</li></ul>
</li><li>
<p>obsoleted environment variables:</p>
<ul><li>
<p>RUBY_FREE_MIN (Use RUBY_GC_HEAP_FREE_SLOTS instead)</p>
</li><li>
<p>RUBY_HEAP_MIN_SLOTS (Use RUBY_GC_HEAP_INIT_SLOTS instead)</p>
</li></ul>
</li></ul>
</li><li>
<p><a href="../Integer.html"><code>Integer</code></a></p>
<ul><li>
<p>New methods</p>
<ul><li>
<p>Fixnum#bit_length</p>
</li><li>
<p>Bignum#bit_length</p>
</li></ul>
</li><li>
<p>Bignum performance improvement</p>
<ul><li>
<p>Use GMP if available. GMP is used only for several operations: multiplication, division, radix conversion, GCD</p>
</li></ul>
</li></ul>
</li><li>
<p><a href="../IO.html"><code>IO</code></a></p>
<ul><li>
<p>extended methods:</p>
<ul><li>
<p><a href="../IO.html#method-i-seek"><code>IO#seek</code></a> supports SEEK_DATA and SEEK_HOLE as whence.</p>
</li><li>
<p><a href="../IO.html#method-i-seek"><code>IO#seek</code></a> accepts symbols (:CUR, :END, :SET, :DATA, :HOLE) for 2nd argument.</p>
</li><li>
<p><a href="../IO.html#method-i-read_nonblock"><code>IO#read_nonblock</code></a> accepts optional ‘exception: false` to return symbols</p>
</li><li>
<p><a href="../IO.html#method-i-write_nonblock"><code>IO#write_nonblock</code></a> accepts optional ‘exception: false` to return symbols</p>
</li></ul>
</li></ul>
</li><li>
<p><a href="../Kernel.html"><code>Kernel</code></a></p>
<ul><li>
<p>New methods:</p>
<ul><li>
<p>Kernel#singleton_method</p>
</li></ul>
</li></ul>
</li><li>
<p><a href="../Module.html"><code>Module</code></a></p>
<ul><li>
<p>New methods:</p>
<ul><li>
<p><a href="../Module.html#method-i-using"><code>Module#using</code></a>, which activates refinements of the specified module only in the current class or module definition.</p>
</li><li>
<p><a href="../Module.html#method-i-singleton_class-3F"><code>Module#singleton_class?</code></a> returns true if the receiver is a singleton class or false if it is an ordinary class or module.</p>
</li></ul>
</li><li>
<p>extended methods:</p>
<ul><li>
<p><a href="../Module.html#method-i-refine"><code>Module#refine</code></a> is no longer experimental.</p>
</li><li>
<p><a href="../Module.html#method-i-include"><code>Module#include</code></a> and <a href="../Module.html#method-i-prepend"><code>Module#prepend</code></a> are now public methods.</p>
</li></ul>
</li></ul>
</li><li>
<p>Mutex</p>
<ul><li>
<p>misc</p>
<ul><li>
<p>Mutex#owned? is no longer experimental.</p>
</li></ul>
</li></ul>
</li><li>
<p><a href="../Numeric.html"><code>Numeric</code></a></p>
<ul><li>
<p>extended methods:</p>
<ul><li>
<p><a href="../Numeric.html#method-i-step"><code>Numeric#step</code></a> allows the limit argument to be omitted, in which case an infinite sequence of numbers is generated.  Keyword arguments ‘to` and `by` are introduced for ease of use. `by` can be 0, in which case the same value will be generated indefinitely.</p>
</li></ul>
</li></ul>
</li><li>
<p><a href="../Process.html"><code>Process</code></a></p>
<ul><li>
<p>New methods:</p>
<ul><li>
<p>alternative methods to $0/$0=:</p>
<ul><li>
<p><a href="../Process.html#method-c-argv0"><code>Process.argv0()</code></a> returns the original value of $0.</p>
</li><li>
<p><a href="../Process.html#method-c-setproctitle"><code>Process.setproctitle()</code></a> sets the process title without affecting $0.</p>
</li></ul>
</li><li>
<p><a href="../Process.html#method-c-clock_gettime"><code>Process.clock_gettime</code></a></p>
</li><li>
<p><a href="../Process.html#method-c-clock_getres"><code>Process.clock_getres</code></a></p>
</li></ul>
</li></ul>
</li><li>
<p><a href="../String.html"><code>String</code></a></p>
<ul><li>
<p>“literal”.freeze is now optimized to return the same object</p>
</li><li>
<p>New methods:</p>
<ul><li>
<p><a href="../String.html#method-i-scrub"><code>String#scrub</code></a> and <a href="../String.html#method-i-scrub-21"><code>String#scrub!</code></a> verify and fix invalid byte sequence. If you want to use this function with older Ruby, consider to use string-scrub.gem.</p>
</li></ul>
</li></ul>
</li><li>
<p><a href="../Symbol.html"><code>Symbol</code></a></p>
<ul><li>
<p>All symbols are now frozen.</p>
</li></ul>
</li><li>
<p>pack/unpack (Array/String)</p>
<ul><li>
<p>Q! and q! directives for long long type if platform has the type.</p>
</li></ul>
</li><li>
<p>toplevel</p>
<ul><li>
<p>extended methods:</p>
<ul><li>
<p>main.using is no longer experimental. The method activates refinements in the ancestors of the argument module to support refinement inheritance by <a href="../Module.html#method-i-include"><code>Module#include</code></a>.</p>
</li></ul>
</li></ul>
</li></ul>

<h3 id="label-Core+classes+compatibility+issues+-28excluding+feature+bug+fixes-29">Core classes compatibility issues (excluding feature bug fixes)<span><a href="#label-Core+classes+compatibility+issues+-28excluding+feature+bug+fixes-29">&para;</a> <a href="#top">&uarr;</a></span></h3>
<ul><li>
<p><a href="../Hash.html"><code>Hash</code></a></p>
<ul><li>
<p>incompatible changes:</p>
<ul><li>
<p><a href="../Hash.html#method-i-reject"><code>Hash#reject</code></a> will return plain <a href="../Hash.html"><code>Hash</code></a> object in the future versions, that is the original object’s subclass, instance variables, default value, and taintedness will be no longer copied, so now warnings are emitted when called with such <a href="../Hash.html"><code>Hash</code></a>.</p>
</li></ul>
</li></ul>
</li><li>
<p><a href="../IO.html"><code>IO</code></a></p>
<ul><li>
<p>incompatible changes:</p>
<ul><li>
<p>open ignore internal encoding if external encoding is ASCII-8BIT.</p>
</li></ul>
</li></ul>
</li><li>
<p><a href="../Kernel.html#method-i-eval"><code>Kernel#eval</code></a>, Kernel#instance_eval, and <a href="../Module.html#method-i-module_eval"><code>Module#module_eval</code></a>.</p>
<ul><li>
<p>Copies the scope information of the original environment, which means that private, protected, public, and module_function without arguments do not affect the environment outside the eval string. For example, ‘class Foo; eval “private”; def foo; end; end’ doesn’t make Foo#foo private.</p>
</li></ul>
</li><li>
<p>Kernel#untrusted?, untrust, and trust</p>
<ul><li>
<p>These methods are deprecated and their behavior is the same as tainted?, taint, and untaint, respectively.  If $VERBOSE is true, they show warnings.</p>
</li></ul>
</li><li>
<p><a href="../Module.html#method-i-ancestors"><code>Module#ancestors</code></a></p>
<ul><li>
<p>The ancestors of a singleton class now include singleton classes, in particular itself.</p>
</li></ul>
</li><li>
<p><a href="../Module.html#method-i-define_method"><code>Module#define_method</code></a> and <a href="../Object.html#method-i-define_singleton_method"><code>Object#define_singleton_method</code></a></p>
<ul><li>
<p>Now they return the symbols of the defined methods, not the methods/procs themselves.</p>
</li></ul>
</li><li>
<p><a href="../Numeric.html#method-i-quo"><code>Numeric#quo</code></a></p>
<ul><li>
<p>Raises <a href="../TypeError.html"><code>TypeError</code></a> instead of <a href="../ArgumentError.html"><code>ArgumentError</code></a> if the receiver doesn’t have to_r method.</p>
</li></ul>
</li><li>
<p><a href="../Proc.html"><code>Proc</code></a></p>
<ul><li>
<p>Returning from lambda proc now always exits from the <a href="../Proc.html"><code>Proc</code></a>, not from the method where the lambda is created.  Returning from non-lambda proc exits from the method, same as the former behavior.</p>
</li></ul>
</li></ul>

<p><a href="../String.html"><code>String</code></a></p>

<pre>* If invalid: :replace is specified for String#encode, replace
  invalid byte sequence even if the destination encoding equals to
  the source encoding.</pre>

<h3 id="label-Stdlib+updates+-28outstanding+ones+only-29">Stdlib updates (outstanding ones only)<span><a href="#label-Stdlib+updates+-28outstanding+ones+only-29">&para;</a> <a href="#top">&uarr;</a></span></h3>
<ul><li>
<p>CGI::Util</p>
<ul><li>
<p>All class methods modulized.</p>
</li></ul>
</li><li>
<p>Digest</p>
<ul><li>
<p>extended methods:</p>
<ul><li>
<p>Digest::Class.file takes optional arguments for its constructor</p>
</li></ul>
</li></ul>
</li><li>
<p>Matrix</p>
<ul><li>
<p>Added Vector#cross_product.</p>
</li></ul>
</li><li>
<p>Net::SMTP</p>
<ul><li>
<p>Added Net::SMTP#rset to implement the RSET command</p>
</li></ul>
</li><li>
<p>objspace</p>
<ul><li>
<p>new method:</p>
<ul><li>
<p>ObjectSpace.trace_object_allocations</p>
</li><li>
<p>ObjectSpace.trace_object_allocations_start</p>
</li><li>
<p>ObjectSpace.trace_object_allocations_stop</p>
</li><li>
<p>ObjectSpace.trace_object_allocations_clear</p>
</li><li>
<p>ObjectSpace.allocation_sourcefile</p>
</li><li>
<p>ObjectSpace.allocation_sourceline</p>
</li><li>
<p>ObjectSpace.allocation_class_path</p>
</li><li>
<p>ObjectSpace.allocation_method_id</p>
</li><li>
<p>ObjectSpace.allocation_generation</p>
</li><li>
<p>ObjectSpace.reachable_objects_from_root</p>
</li><li>
<p>ObjectSpace.dump</p>
</li><li>
<p>ObjectSpace.dump_all</p>
</li></ul>
</li></ul>
</li><li>
<p>OpenSSL::BN</p>
<ul><li>
<p>extended methods:</p>
<ul><li>
<p>OpenSSL::BN.new allows Fixnum/Bignum argument.</p>
</li></ul>
</li></ul>
</li><li>
<p>open-uri</p>
<ul><li>
<p>Support multiple fields with same field name (like Set-Cookie).</p>
</li></ul>
</li><li>
<p>Pathname</p>
<ul><li>
<p>New methods:</p>
<ul><li>
<p>Pathname#write</p>
</li><li>
<p>Pathname#binwrite</p>
</li></ul>
</li></ul>
</li><li>
<p>rake</p>
<ul><li>
<p>Updated to 10.1.0.  Major changes include removal of the class namespace, Rake::DSL to hold the rake DSL methods and removal of support for legacy rake features.</p>

<p>For a complete list of changes since rake 0.9.6 see:</p>

<p><a href="http://rake.rubyforge.org/doc/release_notes/rake-10_1_0_rdoc.html">rake.rubyforge.org/doc/release_notes/rake-10_1_0_rdoc.html</a></p>

<p><a href="http://rake.rubyforge.org/doc/release_notes/rake-10_0_3_rdoc.html">rake.rubyforge.org/doc/release_notes/rake-10_0_3_rdoc.html</a></p>
</li></ul>
</li><li>
<p>RbConfig</p>
<ul><li>
<p>New constants:</p>
<ul><li>
<p>RbConfig::SIZEOF is added to provide the size of C types.</p>
</li></ul>
</li></ul>
</li><li>
<p><a href="../RDoc.html"><code>RDoc</code></a></p>
<ul><li>
<p>Updated to 4.1.0.  Major enhancements include a modified default template</p>
</li><li>
<p>and accessibility enhancements.</p>

<p>For a list of minor enhancements and bug fixes see: <a href="https://github.com/rdoc/rdoc/blob/v4.1.0.preview.1/History.rdoc">github.com/rdoc/rdoc/blob/v4.1.0.preview.1/History.rdoc</a></p>
</li></ul>
</li><li>
<p>Resolv</p>
<ul><li>
<p>New methods:</p>
<ul><li>
<p>Resolv::DNS.fetch_resource</p>
</li></ul>
</li><li>
<p>One-shot multicast DNS support</p>
</li><li>
<p>Support LOC resources</p>
</li></ul>
</li><li>
<p>REXML::Parsers::SAX2Parser</p>
<ul><li>
<p>Fixes wrong number of arguments of entitydecl event. Document of the event says “an array of the entity declaration” but implementation passes two or more arguments. It is an implementation bug but it breaks backward compatibility.</p>
</li></ul>
</li><li>
<p>REXML::Parsers::StreamParser</p>
<ul><li>
<p>Supports “entity” event.</p>
</li></ul>
</li><li>
<p>REXML::Text</p>
<ul><li>
<p>REXML::Text#<< supports method chain like ‘text &lt;&lt; “XXX” &lt;&lt; “YYY”’.</p>
</li><li>
<p>REXML::Text#<< supports not “raw” mode.</p>
</li></ul>
</li><li>
<p>Rinda::RingServer, Rinda::RingFinger</p>
<ul><li>
<p>Rinda now supports multicast sockets.  See Rinda::RingServer and Rinda::RingFinger for details.</p>
</li></ul>
</li><li>
<p>RubyGems</p>
<ul><li>
<p>Updated to 2.2.0.  Notable new features include:</p>
<ul><li>
<p>Gemfile or gem.deps.rb support including Gem.file.lock (experimental)</p>
</li><li>
<p>Improved, iterative resolver (compared to RubyGems 2.1 and earlier)</p>
</li><li>
<p>Support for a sharing a GEM_HOME across ruby platforms and versions</p>
</li></ul>

<p>For a complete list of enhancements and bug fixes see: <a href="https://github.com/rubygems/rubygems/tree/master/History.txt">github.com/rubygems/rubygems/tree/master/History.txt</a></p>
</li></ul>
</li><li>
<p>Set</p>
<ul><li>
<p>New methods:</p>
<ul><li>
<p>Set#intersect?</p>
</li><li>
<p>Set#disjoint?</p>
</li></ul>
</li></ul>
</li><li>
<p>Socket</p>
<ul><li>
<p>New methods:</p>
<ul><li>
<p>Socket.getifaddrs</p>
</li></ul>
</li></ul>
</li><li>
<p>StringScanner</p>
<ul><li>
<p>extended methods:</p>
<ul><li>
<p>StringScanner#[] supports named captures.</p>
</li></ul>
</li></ul>
</li><li>
<p>Syslog::Logger</p>
<ul><li>
<p>Added facility.</p>
</li></ul>
</li><li>
<p>Tempfile</p>
<ul><li>
<p>New methods:</p>
<ul><li>
<p>Tempfile.create</p>
</li></ul>
</li></ul>
</li><li>
<p>Timeout</p>
<ul><li>
<p>The exception to terminate the given block can no longer be rescued inside the block, by default, unless the exception class is given explicitly.</p>
</li></ul>
</li><li>
<p>TSort</p>
<ul><li>
<p>New methods:</p>
<ul><li>
<p>TSort.tsort</p>
</li><li>
<p>TSort.tsort_each</p>
</li><li>
<p>TSort.strongly_connected_components</p>
</li><li>
<p>TSort.each_strongly_connected_component</p>
</li><li>
<p>TSort.each_strongly_connected_component_from</p>
</li></ul>
</li></ul>
</li><li>
<p>WEBrick</p>
<ul><li>
<p>The body of a response may now be a StringIO or other IO-like that responds to readpartial and read.</p>
</li></ul>
</li><li>
<p>XMLRPC::Client</p>
<ul><li>
<p>New methods:</p>
<ul><li>
<p>XMLRPC::Client#http. It returns Net::HTTP for the client. Normally, it is not needed. It is useful when you want to change minor HTTP client options. You can change major HTTP client options by XMLRPC::Client methods. You should use XMLRPC::Client methods for changing major HTTP client options instead of XMLRPC::Client#http.</p>
</li></ul>
</li></ul>
</li></ul>

<h3 id="label-Stdlib+compatibility+issues+-28excluding+feature+bug+fixes-29">Stdlib compatibility issues (excluding feature bug fixes)<span><a href="#label-Stdlib+compatibility+issues+-28excluding+feature+bug+fixes-29">&para;</a> <a href="#top">&uarr;</a></span></h3>
<ul><li>
<p>Set</p>
<ul><li>
<p>incompatible changes:</p>
<ul><li>
<p>Set#to_set now returns self instead of generating a copy.</p>
</li></ul>
</li></ul>
</li><li>
<p>URI</p>
<ul><li>
<p>incompatible changes:</p>
<ul><li>
<p>URI.decode_www_form follows current WHATWG URL Standard. It gets encoding argument to specify the character encoding. It now allows loose percent encoded strings, but denies ;-separator.</p>
</li><li>
<p>URI.encode_www_form follows current WHATWG URL Standard. It gets encoding argument to convert before percent encode. UTF-16 strings aren’t converted to UTF-8 before percent encode by default.</p>
</li></ul>
</li></ul>
</li><li>
<p>curses</p>
<ul><li>
<p>Removed. curses is now available as a gem. See <a href="https://rubygems.org/gems/curses">rubygems.org/gems/curses</a> for details.</p>
</li></ul>
</li></ul>

<h3 id="label-Built-in+global+variables+compatibility+issues">Built-in global variables compatibility issues<span><a href="#label-Built-in+global+variables+compatibility+issues">&para;</a> <a href="#top">&uarr;</a></span></h3>
<ul><li>
<p>$SAFE</p>
<ul><li>
<p>$SAFE=4 is obsolete.  If $SAFE is set to 4 or larger, an <a href="../ArgumentError.html"><code>ArgumentError</code></a> is raised.</p>
</li></ul>
</li></ul>

<h3 id="label-C+API+updates">C API updates<span><a href="#label-C+API+updates">&para;</a> <a href="#top">&uarr;</a></span></h3>
<ul><li>
<p>rb_gc_set_params() is deprecated. This is only used in Ruby internal.</p>
</li><li>
<p>rb_gc_count() added. This returns the number of times <a href="../GC.html"><code>GC</code></a> occurred.</p>
</li><li>
<p>rb_gc_stat() added. This allows access to specific <a href="../GC.html#method-c-stat"><code>GC.stat()</code></a> values from C without any allocation overhead.</p>
</li><li>
<p>rb_gc_latest_gc_info() added. This allows access to <a href="../GC.html#method-c-latest_gc_info"><code>GC.latest_gc_info()</code></a>.</p>
</li><li>
<p>rb_postponed_job_register() added. Takes a function callback which is invoked when the VM is in a consistent state, i.e. to perform work from a C signal handler.</p>
</li><li>
<p>rb_profile_frames() added. Provides low-cost access to the current ruby stack for callstack profiling.</p>
</li><li>
<p>rb_tracepoint_new() supports new internal events accessible only from C:</p>
<ul><li>
<p>RUBY_INTERNAL_EVENT_NEWOBJ</p>
</li><li>
<p>RUBY_INTERNAL_EVENT_FREEOBJ</p>
</li><li>
<p>RUBY_INTERNAL_EVENT_GC_START</p>
</li><li>
<p>RUBY_INTERNAL_EVENT_GC_END_MARK</p>
</li><li>
<p>RUBY_INTERNAL_EVENT_GC_END_SWEEP</p>
</li><li>
<p>Note that you *can not* specify “internal events” with normal events (such as RUBY_EVENT_CALL, RUBY_EVENT_RETURN) simultaneously.</p>
</li></ul>
</li></ul>

</main>

</div>  <!--  class='wrapper hdiv' -->


<footer id="validator-badges" role="contentinfo">
<p><a href="https://validator.w3.org/check/referer">Validate</a></p>
<p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.4.0.</p>
<p>Based on <a href="https://github.com/ged/darkfish/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.</p>

  
    <p><p><a href="https://ruby-doc.org">Ruby-doc.org</a> is provided by <a href="https://jamesbritt.com">James Britt</a> and <a href="https://neurogami.com">Neurogami</a>. </p><p><a href="https://jamesbritt.bandcamp.com/">Hack your world.  Feed your head.  Live curious</a>.</p>
</p>
  
  </footer>

<script type="text/javascript">


  let ads  = $("#carbonads-container").children().detach();


  function swapMode() {
    var cookieName = 'darkmode';
    var cssDarkmode = Cookies.get(cookieName);
    console.log("***** swapMode! " + cssDarkmode + " *****");


    if (cssDarkmode == "true") {
      console.log("We have dark mode, set the css to light ...");
      $('#rdoccss').attr("href", defaultModeCssHref);
      $('#cssSelect').text("Dark mode");
      cssDarkmode = "false";
      console.log("swapMode! Now set cookie to " + cssDarkmode);
      Cookies.set(cookieName, cssDarkmode);

    } else {
      console.log("We not have dark mode, set the css to dark ...");
      $('#rdoccss').attr("href", darkModeCsseHref);
      $('#cssSelect').text("Light mode");
      cssDarkmode = "true";
      console.log("swapMode! Now set cookie to " + cssDarkmode);
      Cookies.set(cookieName, cssDarkmode);

    }

    console.log("  --------------- ");
  }


const vueCssApp = new Vue({
el: '#menubar',
data: {
isDark: false
},
methods: {
toggleClass: function(event){
this.isDark = !this.isDark;
}
}
})

const vueApp = new Vue({
el: '#vapp',
data: { 
isOpen: true
},

mounted() {
this.handleResize();
this.manage_mob_classes();
window.addEventListener('resize', this.handleResize)
//this.isOpen !=  (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent));
},
destroyed() {
window.removeEventListener('resize', this.handleResize)
},
created() {
//manage_mob_classes();
},

methods : {
isMobile() {
  return (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent));
},

  handleResize() {
    if (!this.isMobile()) {
      this.isOpen = window.innerWidth > 800;
    }
  },

  manage_mob_classes() {
    if (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)) {
      $("nav").addClass("mob_nav");
      $("main").addClass("mob_main");
      $("#extraz").addClass("mob_extraz");
      $("#carbonads-container").addClass("mob_carbonads-container");
      this.isOpen  = false;
    } else {
      $("nav").removeClass("mob_nav") 
        $("main").removeClass("mob_main");
      $("#extraz").removeClass("mob_extraz");
      $("#carbonads-container").removeClass("mob_carbonads-container");
      this.isOpen  = true;
    }
  },

  toggleNav() {
    this.isOpen =! this.isOpen ;
    // alert("Toggle nav!");
    console.log("toggleNav() click: " + this.isOpen );
  }
}
})

$("#carbonads-container").append(ads);


$(function() {

    var darkmode = Cookies.get("darkmode");
    console.log("Document ready: " + darkmode);

    if ( darkmode  == "true" ) {
      $('#cssSelect').text("Light mode");
    } else {
      $('#cssSelect').text("Dark mode");
     }

    $('body').css('display','block');
    });

</script>

    
  </body> 
</html>

